home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13462 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: math.ohio-state.edu!usc!usc!not-for-mail
  2. From: radford@sal-sun133.usc.edu (Richard Radford)
  3. Newsgroups: comp.lang.c++
  4. Subject: Need help using g++ and Templates
  5. Date: 25 Mar 1996 12:34:47 -0800
  6. Organization: University of Southern California, Los Angeles, CA
  7. Sender: radford@sal-sun133.usc.edu
  8. Message-ID: <4j7017$8m4@sal-sun133.usc.edu>
  9. NNTP-Posting-Host: sal-sun133.usc.edu
  10. Summary: I am trying to cimpile using g++ version 2.7 and I get link errors
  11. Keywords: templates g++
  12.  
  13. I have created object files for the template class and the files that use instances of the template class. When I compile using g++ version 2.7 I get errors saying I have a bunch of undefined symbols. The template i'm trying to use is for lists. All the undefined symbols are of the form List<Class I'm trying to create a list of>::member_function_of_template. Can anyone offer any advice on how to compile templates using g++. Any help would be greatly appreciated. Please respond by email. I have never posted to a news group before and I'm not sure how I would retrieve any advice you may have for me.
  14.     
  15.     Thanks in advance, Richard Radford     radford@nunki.usc.edu
  16.